package main

import "database/sql"

type Host struct {
	Id             int
	Ip             string         `json:"ip"`
	LastCheck      sql.NullString `json:"last_check"`
	UpdateInterval int
	Services       []*Service
}

type Service struct {
	Id             int
	Name           string
	Plugin         string
	Args           string
	UpdateInterval int
	Items          []*Item
}

type Item struct {
	Name   string
	Key    string
	Status bool
}

type HostList struct {
	Hosts []*Host
}

type Task struct {
	Type   string `json:"type"`
	Plugin string `json:"plugin"`
	Args   string `json:"args"`
}

type Client struct {
	Filename string
	Version  string
}
